#include <stdio.h>

int f(int x){
    if(x==1)
        return 10;
    return f(x - 1) + 2;
}

int main(int argc, char *argv[]) {

    int n = 0;
    scanf("%d", &n);
    printf("%d", f(n));

    return 0;
}